package com.sl.model;

import com.j256.ormlite.field.DatabaseField;

public class ShoppingRecord {
	@DatabaseField(generatedId = true)
	int id;
	@DatabaseField
	String mall;
	@DatabaseField
	String date;
	@DatabaseField
	String comments;

	public ShoppingRecord() {
		mall = "Wal-Mart";
		date = "2014/10/27";
		comments = "cancel";
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("id = ").append(id);
		sb.append(" , mall = ").append(mall);
		sb.append(" , date = ").append(date);
		sb.append(" , comments = ").append(comments);
		return sb.toString();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMall() {
		return mall;
	}

	public void setMall(String mall) {
		this.mall = mall;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}
}
